home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c++
- Path: usenet.eel.ufl.edu!warwick!bsmail!talisker!nathan
- From: nathan@pact.srf.ac.uk (Nathan Sidwell)
- Subject: Re: Operators <<= and >>=
- Message-ID: <Dp93vp.3sx@uns.bris.ac.uk>
- Sender: usenet@uns.bris.ac.uk (Usenet news owner)
- Nntp-Posting-Host: talisker.pact.srf.ac.uk
- Organization: a little blue green planet
- X-Newsreader: TIN [version 1.2 PL2]
- References: <4iva5m$4q5@access4.digex.net>
- Date: Tue, 2 Apr 1996 20:07:01 GMT
-
- Mr. Blue (car@access4.digex.net) wrote:
-
- : When / why would one overload the operators <<= and >>= ?
- If you've overloaded either the << operator or the = operator, you
- might well want to overload <<= to have the effect of overloaded << and
- overloaded =. (Remember, in the abscense of overloading, the <<= operator
- will have the default behaviour from the parent class, not the 'natural'
- behaviour you might assume.)
-
- nathan
-
- --
- Nathan Sidwell Holder of the Xmris home page
- Chameleon Architecture Group at SGS-Thomson, formerly Inmos
- http://www.pact.srf.ac.uk/~nathan/ Tel 0117 9707182
- nathan@inmos.co.uk or nathan@bristol.st.com or nathan@pact.srf.ac.uk
-